import { request } from "@/utils/request";

/**
 * 合同列表
 */
export const listContract = (data) => {
    return request({
        url: `web/applet/contract/listContract`,
        method: 'get',
        data
    });
}
/**
 * 合同金额统计
 */
export const amount = (data) => {
    return request({
        url: `web/applet/contract/amount`,
        method: 'get',
        data
    });
}
/**
 * 变更分页列表
 */
export const listReform = (data) => {
    return request({
        url: `web/applet/contract/listReform`,
        method: 'get',
        data
    });
}
/**
 * 合同文件
 */
export const getContractFile = (contractId) => {
    return request({
        url: `web/applet/contract/getContractFile/${contractId}`,
        method: 'get'
    });
}
/**
 * 报价变更单明细
 */
export const getExchange = (data) => {
    return request({
        url: `web/applet/contract/getExchangeByBudgetId`,
        method: 'get',
        data
    });
}
/**
 * 电子签约
 */
export const signContract = (contractNo) => {
    return request({
        url: `web/applet/contract/signContract/${contractNo}`,
        method: 'get'
    });
}
/**
 * 变更详情
 */
export const getReform = (reformId) => {
    return request({
        url: `web/applet/contract/getReform/${reformId}`,
        method: 'get'
    });
}